home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / ov_all.zip / TI681.ASC < prev    next >
Text File  |  1991-09-11  |  5KB  |  199 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.   PRODUCT   :  ObjectVision                          NUMBER  :  681
  9.   VERSION   :  1.0
  10.        OS   :  WIN
  11.      DATE   :  September 11, 1991                      PAGE  :  1/3
  12.  
  13.     TITLE   :  Running Totals in ObjectVision
  14.  
  15.  
  16.  
  17.  
  18.   ObjectVision requires data for all fields referenced by a formula
  19.   before the formula is evaluated.  If three fields are referenced
  20.   in an @SUM formula the total will remain blank until the user has
  21.   supplied data to all three fields.  In some cases the user may
  22.   not wish to provide answers to all fields, and would like
  23.   ObjectVision to perform the calculation anyway.  Using decision
  24.   trees it is possible to detect when  the user presses return on a
  25.   field (leaving it blank), it will be assumed that the user is
  26.   finished entering data and wishes to proceed to the remaining
  27.   fields after the total on the page.
  28.  
  29.   This example uses an order form with four lines, each line has an
  30.   item, a quantity a price and a subtotal.  After the fourth line
  31.   there is a grand total which sums the subtotals.  The field names
  32.   are: Item1, Item2, Item3, and Item4 for the line items,
  33.   quantities are q1, q2, q3, and q4.  Prices are p1, p2, p3, p4 and
  34.   subtotal fields are s1, s2, s3 and s4.  The basic idea is if the
  35.   current line item is blank, the current quantity, price and
  36.   subtotal will also be blank.  The third line checks to see if the
  37.   second line is blank, if it is it sets all of its values to blank
  38.   as well, the fourth  line checks the third line, and so on.
  39.  
  40.   In the decision trees below, some of the conclusions are single
  41.   apostrophes.  A conclusion of a single apostrophe is the same as
  42.   the user pressing return on a field without entering data.  When
  43.   asked for a conclusion, press Return (or click on OK) and
  44.   ObjectVision will place a single apostrophe into the conclusion
  45.   dialogue box (or the user may type the apostrophe and press
  46.   Return).
  47.  
  48.   Tree for Item3
  49.       Branch on Item2
  50.           Condition: =""
  51.             Conclusion: '
  52.           Otherwise +Item3
  53.  
  54.   Tree for Item4
  55.       Branch on Item3
  56.           Condition: =""
  57.             Conclusion: '
  58.           Otherwise +Item4
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.   PRODUCT   :  ObjectVision                          NUMBER  :  681
  75.   VERSION   :  1.0
  76.        OS   :  WIN
  77.      DATE   :  September 11, 1991                      PAGE  :  2/3
  78.  
  79.     TITLE   :  Running Totals in ObjectVision
  80.  
  81.  
  82.  
  83.  
  84.   Tree for q2
  85.       Branch on Item2
  86.           Condition: =""
  87.             Conclusion: '
  88.           Otherwise +q2
  89.  
  90.   Tree for q3
  91.       Branch on Item3
  92.           Condition: =""
  93.             Conclusion: '
  94.           Otherwise +q3
  95.  
  96.   Tree for q4
  97.       Branch on Item4
  98.           Condition: =""
  99.             Conclusion: '
  100.           Otherwise +q4
  101.  
  102.   Tree for p2
  103.       Branch on Item2
  104.           Condition: =""
  105.             Conclusion: '
  106.           Otherwise +p2
  107.  
  108.   Tree for p3
  109.       Branch on Item3
  110.           Condition: =""
  111.             Conclusion: '
  112.           Otherwise +p3
  113.  
  114.   Tree for p4
  115.       Branch on Item4
  116.           Condition: =""
  117.             Conclusion: '
  118.           Otherwise +p4
  119.  
  120.   Tree for s1
  121.       +q1*p1
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.   PRODUCT   :  ObjectVision                          NUMBER  :  681
  141.   VERSION   :  1.0
  142.        OS   :  WIN
  143.      DATE   :  September 11, 1991                      PAGE  :  3/3
  144.  
  145.     TITLE   :  Running Totals in ObjectVision
  146.  
  147.  
  148.  
  149.  
  150.   Tree for s2
  151.       Branch on Item2
  152.           Condition: =""
  153.             Conclusion: '
  154.           Otherwise +p2*q2
  155.  
  156.   Tree for s3
  157.       Branch on Item3
  158.           Condition: =""
  159.             Conclusion: '
  160.           Otherwise +p3*q3
  161.  
  162.   Tree for s4
  163.       Branch on Item4
  164.           Condition: =""
  165.             Conclusion: '
  166.           Otherwise +p4*q4
  167.  
  168.   Tree for Total
  169.       +s1+s2+s3+s4
  170.  
  171.   There is a second method for handling the same problem.  This
  172.   method requires placing a blank default conclusion on each of
  173.   items.  A blank conclusion is simply a conclusion of an
  174.   apostrophe.  This apostrophe simulates a return being entered by
  175.   the user, and will therefore look like an empty field value.  If
  176.   the fields on the form have a default value already, the total
  177.   will calculate.
  178.  
  179.   The drawbacks to this implementation include the following:  The
  180.   fields with answers will be skipped since they no longer require
  181.   an answer, therefore the user will have to use the mouse, or the
  182.   TAB key to make an entry to these fields -- guided completion is
  183.   overridden.  Another drawback which many find objectionable is
  184.   that should the user type information into a field whose default
  185.   value is a blank, the field will be "grayed out".  More
  186.   information about "Overriding values" is described on page 11 of
  187.   the ObjectVision Reference Manual.  Still some users prefer the
  188.   simplicity of this second method so it has been described here.
  189.   To avoid confusion on the part of the user about the grayed
  190.   fields, a gray rectangle may be placed over the section of the
  191.   form which uses default blank values and the end-user will assume
  192.   that the form was designed to be gray in these areas.
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.